<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<% 
	String path = request.getContextPath();
	session.setAttribute("path", path);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>控制台页面_企业工资管理系统</title>
<link rel="stylesheet" href="${path}/resources/css/style.default.css" type="text/css" />

<script type="text/javascript" src="${path}/resources/js/plugins/jquery-1.7.min.js"></script>
<script type="text/javascript"
	src="${path}/resources/js/plugins/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="${path}/resources/js/plugins/jquery.cookie.js"></script>
<script type="text/javascript" src="${path}/resources/js/plugins/jquery.uniform.min.js"></script>
<script type="text/javascript" src="${path}/resources/js/plugins/jquery.flot.min.js"></script>
<script type="text/javascript"
	src="${path}/resources/js/plugins/jquery.flot.resize.min.js"></script>
<script type="text/javascript" src="${path}/resources/js/plugins/jquery.slimscroll.js"></script>
<script type="text/javascript" src="${path}/resources/js/general.js"></script>
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="${path}/resources/js/plugins/excanvas.min.js"></script><![endif]-->
<!--[if IE 9]>
    <link rel="stylesheet" media="screen" href="${path}/resources/css/style.ie9.css"/>
<![endif]-->
<!--[if IE 8]>
    <link rel="stylesheet" media="screen" href="${path}/resources/css/style.ie8.css"/>
<![endif]-->
<!--[if lt IE 9]>
	<script src="${path}/resources/js/plugins/css3-mediaqueries.js"></script>
<![endif]-->

<style type="text/css">
label {
	padding: 0px 20px 0px 0px !important;
	width: 400px;
	font-weight: bold;
}

.stdform {
	width: 600px;
	margin: 0 auto;
}
</style>
</head>

<body class="withvernav">
	<div class="bodywrapper">
		<div class="topheader">
			<div class="left">
				<h1 class="logo">
					企业<span>工资管理系统</span>
				</h1>
				<br clear="all" />
			</div>
			<!--left-->

			<div class="right">
				<div class="userinfo">
					<img src="${path}/resources/images/thumbs/avatar.png" alt="" />
					<span> ${employee.empNo}</span>
				</div>
				<!--userinfo-->

				<div class="userinfodrop">
					<div class="avatar">
						<a href=""><img src="${path}/resources/images/thumbs/avatarbig.png" alt="" /></a>
						<div class="changetheme">
							切换主题: <br /> <a class="default"></a> <a class="blueline"></a> <a
								class="greenline"></a> <a class="contrast"></a> <a
								class="custombg"></a>
						</div>
					</div>
					<!--avatar-->
					<div class="userdata">
						<h4>${employee.empName}</h4>
						<span class="email">${employee.empEmail}</span>
						<ul>
							<li><a href="${path}/employee/editProfile">编辑资料</a></li>
							<li><a href="${path}/employee/password">修改密码</a></li>
							<li><a href="#">帮助</a></li>
							<li><a href="${path}/employee/logout">退出</a></li>
						</ul>
					</div>
					<!--userdata-->
				</div>
				<!--userinfodrop-->
			</div>
			<!--right-->
		</div>
		<!--topheader-->


		<div class="header">
			<ul class="headermenu">
				<li class="current"><a href="${path}/employee/profile"><span
						class="icon icon-flatscreen"></span>首页</a></li>
				<li><a href="${path}/department"><span
						class="icon icon-pencil"></span>部门信息管理</a></li>
				<li><a href="${path}/post"><span
						class="icon icon-message"></span>岗位信息管理</a></li>
				<li><a href="${path}/employee"><span
						class="icon icon-pencil"></span>员工信息管理</a></li>
				<c:if test="${employee.isAdmin == 1 }">
				<li><a href="${path}/timecard"><span
						class="icon icon-speech"></span>考勤信息管理</a></li>
				</c:if>
				<c:if test="${employee.isAdmin == 0 }">
				<li><a href="${path}/timecard/myTimecards"><span
						class="icon icon-speech"></span>考勤信息管理</a></li>
				</c:if>
				<li><a href="${path}/bonus"><span 
						class="icon icon-chart"></span>奖金信息管理</a></li>
				<li><a href="${path}/salaryRecord"><span 
						class="icon icon-message"></span>工资信息管理</a></li>
			</ul>
		</div>
		<!--header-->

		<div class="vernav2 iconmenu">
			<ul>
				<li><a href="${path}/department" class="widgets">部门信息管理</a></li>
	        	<li><a href="${path}/post" class="support">岗位信息管理</a></li>
	            <li><a href="${path}/employee" class="tables">员工信息管理</a></li>
	            <li><a href="#attend" class="calendar">考勤信息管理</a>
	            	<span class="arrow"></span>
	            	<ul id="attend">
	            		<c:if test="${employee.isAdmin == 1 }">
	               		<li><a href="${path}/timecard">考勤-日历模式</a></li>
	               		</c:if>
	               		<c:if test="${employee.isAdmin == 0 }">
	               		<li><a href="${path}/timecard/myTimecards">考勤-日历模式</a></li>
	               		</c:if>
	                    <li><a href="${path}/timecard/table">考勤-表格模式</a></li>
	                </ul>
            	</li>
	            <li><a href="${path}/bonus" class="tables">奖金信息管理</a>
	            </li>
	            <li><a href="#salary" class="widgets">工资信息管理</a>
	            	<span class="arrow"></span>
	            	<ul id="salary">
	            		<c:if test="${employee.isAdmin == 1 }">
	            		 <li><a href="${path}/salaryRecord/calPre">工资结算</a></li>
	            		 </c:if>
	                    <li><a href="${path}/salaryRecord">工资记录</a></li>
	                    <c:if test="${employee.isAdmin == 1 }">
	                    <li><a href="${path}/postSalary">工资结构调整</a></li>
	                    </c:if>
	                    <c:if test="${employee.isAdmin == 0 }">
	                    <li><a href="${path}/postSalary/myStructure">我的工资结构</a></li>
	                    </c:if>
	                </ul>
            	</li>
        	</ul>
			<a class="togglemenu"></a> <br />
			<br />
		</div>
		<!--leftmenu-->

		<div class="centercontent">

			<div class="pageheader">
				<h1 class="pagetitle">个人资料</h1>
				<span class="pagedesc">这是个人资料页面，显示当前用户的个人信息。</span>

				<ul class="hornav">
					<li class="current"><a href="#">个人信息</a></li>

				</ul>
			</div>
			<!--pageheader-->

			<div id="contentwrapper" class="contentwrapper">
				<div id="basicform" class="subcontent">
					<div class="stdform">
						<c:if test="${employee.empPhoto eq null && employee.empPhoto eq ''}">
					    <img src="${path}/resources/employeePic/default.png" style="float:right; width:120px; height:150px;"></img>
					    </c:if>
					    <c:if test="${employee.empPhoto ne null && employee.empPhoto ne ''}">
					    <img src="${path}/resources/employeePic/${employee.empPhoto }" style="float:right; width:120px; height:150px;"></img>
					    </c:if>
						<p>
						<c:if test="${employee.empNo ne null && employee.empNo ne ''}">
							<label>编号:</label> <span id="username">${employee.empNo}</span>
						</c:if>
						<c:if test="${employee.empNo eq null || employee.empNo eq ''}">
							<label>编号:</label> <span id="username">N/A</span>
						</c:if>
						</p>

						<p>
						<c:if test="${employee.empName ne null && employee.empName ne ''}">
							<label>姓名:</label> <span id="name">${employee.empName }</span>
						</c:if>
						<c:if test="${employee.empName eq null || employee.empName eq ''}">
							<label>姓名:</label> <span id="name">N/A</span>
						</c:if>
						</p>
						<c:if test="${employee.deptName ne null && employee.deptName ne ''}">
						<p>
							<label>部门:</label> <span id="email">${employee.deptName }</span>
						</p>
						</c:if>
						<c:if test="${employee.deptName eq null || employee.deptName eq ''}">
						<p>
							<label>部门:</label> <span id="email">N/A</span>
						</p>
						</c:if>
						<c:if test="${employee.postName ne null && employee.postName ne ''}">
						<p>
							<label>岗位:</label> <span id="gender">${employee.postName }</span>
						</p>
						</c:if>
						<c:if test="${employee.postName eq null || employee.postName eq ''}">
						<p>
							<label>岗位:</label> <span id="gender">N/A</span>
						</p>
						</c:if>
						<c:if test="${employee.isAdmin ne null && employee.isAdmin ne ''}">
						<p>
							<label>管理员:</label> <span id="mobile">${employee.isAdmin == 1?"是":"否" }</span>
						</p>
						</c:if>
						<c:if test="${employee.isAdmin eq null || employee.isAdmin eq ''}">
						<p>
							<label>管理员:</label> <span id="mobile">N/A</span>
						</p>
						</c:if>
						<c:if test="${employee.empGender ne null && employee.empGender ne ''}">
						<p>
							<label>性别:</label> <span id="college">${employee.empGender }</span>
						</p>
						</c:if>
						<c:if test="${employee.empGender eq null || employee.empGender eq ''}">
						<p>
							<label>性别:</label> <span id="college">N/A</span>
						</p>
						</c:if>
						<c:if test="${employee.empBirth ne null && employee.empBirth ne ''}">
						<p>
							<label>出生年月:</label> <span id="college">${employee.empBirth }</span>
						</p>
						</c:if>
						<c:if test="${employee.empBirth eq null || employee.empBirth eq ''}">
						<p>
							<label>出生年月:</label> <span id="college">N/A</span>
						</p>
						</c:if>
						<c:if test="${employee.empPhone ne null && employee.empPhone ne ''}">
						<p>
							<label>手机号码:</label> <span id="major">${employee.empPhone }</span>
						</p>
						</c:if>
						<c:if test="${employee.empPhone eq null || employee.empPhone eq ''}">
						<p>
							<label>手机号码:</label> <span id="major">N/A</span>
						</p>
						</c:if>
						<c:if test="${employee.empEmail ne null && employee.empEmail ne ''}">
						<p>
							<label>电子邮件:</label> <span id="major">${employee.empEmail }</span>
						</p>
						</c:if>
						<c:if test="${employee.empEmail eq null || employee.empEmail eq ''}">
						<p>
							<label>电子邮件:</label> <span id="major">N/A</span>
						</p>
						</c:if>
						<c:if test="${employee.empAddress ne null && employee.empAddress ne ''}">
						<p>
							<label>地址:</label> <span id="mobile">${employee.empAddress }</span>
						</p>
						</c:if>
						<c:if test="${employee.empAddress eq null || employee.empAddress eq ''}">
						<p>
							<label>地址:</label> <span id="mobile">N/A</span>
						</p>
						</c:if>
						
						<p>
							<a style="margin-left: 200px" href="${path}/employee/editProfile"
								class="btn btn_orange btn_link"><span>修改信息</span></a>
						</p>
					</div>
					<br />
				</div>
				<!--contentwrapper-->

				<br clear="all" />

			</div>
			<!-- centercontent -->


		</div>
		<!--bodywrapper-->
	</div>
</body>
</html>
